import { createStore } from 'vuex'

export const store = createStore({
  state: {
    count: 1,
    transition: 'fadeX',
    background: 'b1',
  },
  /** 监听state变化 */
  getters: {},
  mutations: {
    setTransition(state, data) {
      state.transition = data;
    },
    setBackground(state, data) {
      state.background = data;
    }
  },
  actions: {},
})